﻿@model RoleView

<div class="col">
    <div class="widget-box readonly">
        <div class="widget-header">
            <span class="icon fa fa-th-list"></span>
            <h5>@Headers.Role</h5>
            <div class="widget-header-buttons">
                <authorize action="Details">
                    <a asp-action="Details" asp-route-id="@Model.Id" class="btn">
                        <span class="fa fa-info"></span><span class="text">@Actions.Details</span>
                    </a>
                </authorize>
                <authorize action="Edit">
                    <a asp-action="Edit" asp-route-id="@Model.Id" class="btn">
                        <span class="fa fa-pencil-alt"></span><span class="text">@Actions.Edit</span>
                    </a>
                </authorize>
            </div>
        </div>
        <div class="widget-content">
            <div class="form-group">
                <div class="control-label col-xs-12 col-md-3 col-lg-2">
                    <label asp-for="Title"></label>
                </div>
                <div class="control-content col-xs-12 col-md-9 col-lg-5">
                    <input asp-for="Title" class="form-control" autocomplete="off" />
                </div>
            </div>
            <div class="form-group">
                <div class="control-label col-xs-12 col-md-3 col-lg-2">
                    <label asp-for="Permissions"></label>
                </div>
                <div class="control-content col-xs-12 col-md-9 col-lg-5">
                    <div jstree-for="Permissions"></div>
                </div>
            </div>
            <form asp-antiforgery="true">
                <div class="form-group">
                    <div class="form-actions col-xs-12 col-lg-7">
                        <button type="submit" class="btn btn-primary">@Actions.Submit</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
